﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using ShareContent;

namespace AncientEmpires_025_132
{
    public class MiniMap : VisibleGameEntity
    {
        private Vector2 _sizeMiniMap;
        public Vector2 SizeMiniMap
        {
            get { return _sizeMiniMap; }
            set { _sizeMiniMap = value; }
        }
        public MiniMap(ContentManager content, string[] strtexture, Vector2 position, Vector2 topleft, Vector2 size)
        {
            ListSprites = new List<Sprite2D>();
            Texture2D[] texture = new Texture2D[strtexture.Length];
            for (int i = 0; i < strtexture.Length; i++)
            {
                texture[i] = content.Load<Texture2D>(strtexture[i]);
            }
            Sprite2D temp = new Sprite2D(texture, new Vector2(), new Vector2());
            temp.Size = size;
            temp.Position = position;
            temp.TopLeft = topleft;
            this.ListSprites.Add(temp);
            this.SizeMiniMap = size;
        }
    }
}
